<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:import url="/WEB-INF/jsp/header.jsp">
	<c:param name="title" value="accueil"/>
</c:import>

<div class="row-fluid">
    <div class="span8">
        <div class="navbar">
            <div class="navbar-inner">
              <a class="brand" href="index.htm">Carnet d'Amis !</a>
              <ul class="nav">
                <li><a href="index.htm">Mon Mur</a></li>
                <li><a href="amis.htm">Mes amis</a></li>
                <li class="active"><a href="modifier.htm">Mon profil</a></li>
              </ul>
              <ul class="nav pull-right">
                <li><a href="logout.htm">Déconnexion (${user.pseudo})</a></li>
              </ul>
            </div>
        </div>
            <div class="bloc">
                <div class="bloc-header">
                    <div class="bloc-header-inner">
                        <h1>Bonjour ${user.prenom} ${user.nom} !</h1>
                    </div>
                </div>
                <div class="bloc-corps">
                    <div class="bloc-inner">
                              <c:if test="${error != null}">
                                <div class="alert alert-error">
                                ${error}
                                </div>
                              </c:if>
                              <c:if test="${success != null}">
                                <div class="alert alert-success">
                                ${success}
                                </div>
                              </c:if>
                            <form action="modifier.htm" method="POST" class="form-horizontal">
                                <div class="control-group">
                                    <label class="control-label" for=""></label>
                                    <div class="controls">
                                        <img src="${user.avatar}" class="avatar"/>
                                    </div>
                                </div><div class="control-group">
                                    <label class="control-label" for="inputAvatar">Avatar</label>
                                    <div class="controls">
                                        <input type="text" name="avatar" id="inputAvatar" placeholder="URL de l'avatar" value="${user.avatar}">
                                        <span class="help-inline">L'URL peut être absolue (http://www......) ou relative (download.htm?id=...)</span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label" for="inputPseudo">Pseudo</label>
                                    <div class="controls">
                                        <input type="text" name="pseudo" id="inputPseudo" value="${user.pseudo}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label" for="inputMail">E-mail</label>
                                    <div class="controls">
                                        <input type="text" name="email" id="inputMail" value="${user.email}">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label" for="inputPaswd">Mot de passe</label>
                                    <div class="controls">
                                        <input type="password" name="passwd" id="inputPaswd" placeholder="Ancien mot de passe"><br/>
                                        <input type="password" name="newpasswd" id="inputPaswd" placeholder="Nouveau mot de passe"><br/>
                                        <input type="password" name="newpasswdbis" id="inputPaswd" placeholder="Retaper Nouveau mot de passe">
                                    </div>
                                </div>

                                <div class="control-group">
                                    <div class="controls">
                                    <button type="submit" class="btn btn-primary">Enregistrer</button>
                                    </div>
                                </div>
                                </form>
                        
                        <div style="clear:both"></div>
                    </div>
                </div>
                <div class="bloc-footer">
                    <div class="bloc-footer-inner">

                    </div>
                </div>
            </div>
    </div>
</div>
<c:import url="/WEB-INF/jsp/footer.jsp"/>